package se.webbzon.boltzmann.battle.hud;

import java.awt.Color;
import java.awt.Font;
import java.awt.Image;

import se.webbzon.boltzmann.battle.strategy.playerstrategy.PSIconPageLayout;
import se.webbzon.boltzmann.battle.strategy.playerstrategy.PSItemPageLayout;
import se.webbzon.boltzmann.hud.TopBarLayout;
import se.webbzon.boltzmann.resource.Resources;
import se.webbzon.oschi01.resourceset.ResourceSet;

public class BattleHudLayoutLow extends AbstractBattleHudLayout {

	/*------------------------------------------------------------
	Player strategy icon page layout
	------------------------------------------------------------*/
	
	// The font used in the player strategy icon page
	private static final Font iconTextFont = new Font("Lucidia Console",Font.PLAIN,12);
	
	// The icon background image
	private static final Image iconBackground = Resources.getImageSet("icon_background_48p").get(0); 
	
	/*------------------------------------------------------------
	Player strategy item page layout
	------------------------------------------------------------*/
	
	// The font used in the player strategy item page
	private static final Font itemTextFont = iconTextFont;
	
	// The item background and item arrow images
	private static final Image itemBackground = Resources.getImageSet("item_list_232p").get(0);
	private static final Image itemUpArrow = Resources.getImageSet("item_arrow_up").get(0);
	private static final Image itemDownArrow = Resources.getImageSet("item_arrow_down").get(0);
	
	/*------------------------------------------------------------
	Top bar layout
	------------------------------------------------------------*/
	
	// The font used in the top bar
	private static final Font topBarFont = new Font("Lucida Console",Font.PLAIN,12);
	
	// The character icons
	private static final ResourceSet<Image> 
								characterIcons = Resources.getImageSet("character_icon_24p");
	
	// The image set of the coin and note
	private static final ResourceSet<Image> 
								coin = Resources.getImageSet("pickup_silver_coin"),
								note = Resources.getImageSet("pickup_note");
	
	// The image set of the health bar
	private static final ResourceSet<Image>
								healthBar = Resources.getImageSet("health_bar_16p");
	
	// The image of the top bar
	private static final Image	topBar = Resources.getImageSet("top_bar_54p").get(0);
	
	/*============================================================
	Constructors
	============================================================*/
	
	public BattleHudLayoutLow() {
		super(	// The icon page layout
				new PSIconPageLayout(	104,8,8,-24,-24,8,30, 
										iconTextFont, 
										iconBackground),
				// The item page layout
				new PSItemPageLayout(	408, 64, 7, 4, 4, 168, 32, 4, 0, 32, 32, 4, 20, 
										itemTextFont, null, 
										itemBackground, itemUpArrow, itemDownArrow),
				
				// Top bar layout
				new TopBarLayout(	64,322,5,24,24,352,5,382,3,4,382,19,4,48,4,4,48,24,256,8,1,
									Color.orange,
									topBarFont,
									topBar,characterIcons,coin,note,healthBar));
	}

}
